﻿<%@ Page Language="C#" MasterPageFile="~/MasterPageSERIX.Master" AutoEventWireup="true"
    CodeBehind="PermissoesProgramas.aspx.cs" Inherits="SERIX.PermissoesProgramas"
    Title="Áreas de Ação" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table width="97%" border="0" cellspacing="0" cellpadding="2" align="center">
        <tr>
            <td class="secao_titulo" style="width: 284px">
                Áreas de Ação<hr class="linhaHorizontal" style="width: 740px" />
            </td>
        </tr>
        <tr>
            <td align="left" class="erro">
                <asp:Label ID="lblErro" runat="server" CssClass="erro" Text="*Erro: " Visible="False"
                    Width="740px" TabIndex="-1" onload="lblErro_Load"></asp:Label>
            </td>
        </tr>
    </table>
    <table align="center" border="0" cellpadding="2" cellspacing="0" width="97%">
        <tr>
            <td align="center" class="grid_mestre">
                <span style="color: #000000">Programa: </span>
                <asp:Label ID="lblPrograma" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="center" class="grid_mestre">
                <span style="color: #000000">Data de Início: </span>
                <asp:Label ID="lblDataInicio" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td align="center" class="grid_titulo">
                <span style="color: #FFFFFF">Estados: </span>
                <asp:DropDownList ID="ddlEstados" runat="server">
                    <asp:ListItem />
                    <asp:ListItem>AC</asp:ListItem>
                    <asp:ListItem>AL</asp:ListItem>
                    <asp:ListItem>AM</asp:ListItem>
                    <asp:ListItem>AP</asp:ListItem>
                    <asp:ListItem>BA</asp:ListItem>
                    <asp:ListItem>CE</asp:ListItem>
                    <asp:ListItem>DF</asp:ListItem>
                    <asp:ListItem>ES</asp:ListItem>
                    <asp:ListItem>GO</asp:ListItem>
                    <asp:ListItem>MA</asp:ListItem>
                    <asp:ListItem>MG</asp:ListItem>
                    <asp:ListItem>MT</asp:ListItem>
                    <asp:ListItem>MS</asp:ListItem>
                    <asp:ListItem>PA</asp:ListItem>
                    <asp:ListItem>PB</asp:ListItem>
                    <asp:ListItem>PE</asp:ListItem>
                    <asp:ListItem>PI</asp:ListItem>
                    <asp:ListItem>PR</asp:ListItem>
                    <asp:ListItem>RJ</asp:ListItem>
                    <asp:ListItem>RN</asp:ListItem>
                    <asp:ListItem>RO</asp:ListItem>
                    <asp:ListItem>RR</asp:ListItem>
                    <asp:ListItem>RS</asp:ListItem>
                    <asp:ListItem>SC</asp:ListItem>
                    <asp:ListItem Selected="True">SE</asp:ListItem>
                    <asp:ListItem>SP</asp:ListItem>
                    <asp:ListItem>TO</asp:ListItem>
                </asp:DropDownList>
                &#160;&#160;<asp:Button ID="btnPequisar" runat="server" Font-Bold="True" OnClick="btnPequisar_Click"
                    TabIndex="5" Text="Pesquisar" Width="80px" />
                &#160;&#160;<asp:Button ID="btnTodos" runat="server" Font-Bold="True" OnClick="btnTodos_Click"
                    TabIndex="6" Text="Todos" UseSubmitBehavior="False" Width="80px" />
            </td>
        </tr>
        <tr>
            <td align="left" style="color: #000000">
                <asp:Label ID="lblFiltro" runat="server" CssClass="filtro" TabIndex="-1" Text="Filtro: "></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="center" style="color: #000000">
                <asp:GridView ID="gridView" runat="server" AutoGenerateColumns="False" CssClass="grid"
                    DataKeyNames="IDT_MUN" EmptyDataText="Nenhum registro encontrado." OnRowDataBound="gridView_RowDataBound">
                    <AlternatingRowStyle CssClass="row_alter" />
                    <Columns>
                        <asp:TemplateField HeaderText="Permitido">
                            <ItemTemplate>
                                <asp:CheckBox ID="ckbPermitido" runat="server" />
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="IDT_MUN" HeaderText="IDT_MUN" Visible="False" />
                        <asp:BoundField DataField="NOME_MUN" HeaderText="Município">
                            <ItemStyle Width="100%"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="UF_MUN" HeaderText="Estado">
                            <ItemStyle Width="0%" HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
                    </Columns>
                    <EmptyDataRowStyle CssClass="emptyrow" />
                    <FooterStyle CssClass="footer" />
                    <HeaderStyle CssClass="header" />
                    <PagerStyle CssClass="pager" />
                    <RowStyle CssClass="row" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td style="height: 30px; color: black;" width="100%" align="center">
                <asp:Button ID="Ok_Button" runat="server" Font-Bold="True" Text="Ok" Width="80px"
                    OnClick="Ok_Button_Click" />
                &nbsp;<asp:Button ID="Cancelar_Button" runat="server" Font-Bold="True" OnClick="Cancelar_Button_Click"
                    Text="Cancelar" Width="80px" CausesValidation="False" />
            </td>
        </tr>
    </table>
</asp:Content>
